package com.wtwd.campus.model.dto;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author mjy
 * @date 2023/02/01
 * @description
 */
@ApiModel(value = "批量锁网dto对象")
public class BathLockNetDto {

    public static String PLMNS_SEPARATE = ",";


    @ApiModelProperty(value = "锁住对象的设备")
    private String lockDto;

    private List<BathLockNet> lockDtos;

    @ApiModelProperty(value = "plmn码组,多个用英文逗号隔开")
    private String plmns;

    public List<BathLockNet> getLockDtos() {
        return JSONArray.parseArray(lockDto,BathLockNet.class);
    }

    public void setLockDtos(List<BathLockNet> lockDtos) {
        this.lockDtos = lockDtos;
    }

    public String getPlmns() {
        return plmns;
    }

    public void setPlmns(String plmns) {
        this.plmns = plmns;
    }

    public String getLockDto() {
        return lockDto;
    }

    public void setLockDto(String lockDto) {
        this.lockDto = lockDto;
    }

    @Override
    public String toString() {
        return "BathLockNetDto{" +
                "lockDto='" + lockDto + '\'' +
                ", lockDtos=" + lockDtos +
                ", plmns='" + plmns + '\'' +
                '}';
    }
}
